class FaturamentoAnterio < ActiveRecord::Migration
  def self.up
    create_table :fatants do |t|
      t.column :data, :datetime, :null => false
      t.column :created_at, :datetime
    end
    
    create_table :fatantdepos do |t|
      t.column :fatant_id, :integer, :null => false
      t.column :deposito_id, :integer
      t.column :total, :float
    end
  end

  def self.down
    drop_table :fatants
    drop_table :fatantdepos
  end
end
